package com.wf.course.model.user;

import java.util.List;

/**
 * 系统用户信息
 * @author lyinlong
 *
 */
public class User {

	/**
	 * 自增长编号
	 */
	private Integer id;
	/**
	 * 用户名(登录名)
	 */
	private String userName;
	/**
	 * 昵称
	 */
	private String nickName;
	/**
	 * 加密后的密码
	 */
	private String password;
	/**
	 * 用于加密密码的UUID
	 */
	private String salt;
	/**
	 * 创建时间
	 */
	private String createTime;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 手机号码
	 */
	private String telephone;
	/**
	 * 状态
	 * 0:禁用   1:启用
	 */
	private Boolean status;
	/**
	 * 用户唯一标识
	 */
	private String token;
	
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getIntro() {
		return intro;
	}
	public void setIntro(String intro) {
		this.intro = intro;
	}
	private List<Role> roles;
	
	private String roleName;//角色名称
	private String intro;//角色说明
	
	public User() {
		super();
		// TODO Auto-generated constructor stub
	}
	public User(Integer id, String userName, String nickName, String password, String salt, String createTime, String email,
			String telephone, Boolean status, String token) {
		super();
		this.id = id;
		this.userName = userName;
		this.nickName = nickName;
		this.password = password;
		this.salt = salt;
		this.createTime = createTime;
		this.email = email;
		this.telephone = telephone;
		this.status = status;
		this.token = token;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSalt() {
		return salt;
	}
	public void setSalt(String salt) {
		this.salt = salt;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public Boolean getStatus() {
		return status;
	}
	public void setStatus(Boolean status) {
		this.status = status;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
}
